package com.flx.at.spring.code.apps.circle;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: Fenglixiong
 * @Date: 2021/7/3 14:37
 * @Description:
 */
@Slf4j
@Service
public class InstanceA implements InitializingBean {

    @Autowired
    private InstanceB instanceB;

    public InstanceA(){
        log.info("InstanceA construct...");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        log.info("InstanceA afterPropertiesSet ...");
    }

    public void init(){
        log.info("InstanceA init...");
    }

}
